<template>
	<view>
		<uni-card title="基础卡片" extra="额外信息" v-for="(ents,index) in list" :key="index" @click="cli(ents.eid)">
			<text>{{ents.name}}</text>
				
			<!-- <text v-show="ents.enstatus==1">在职</text> -->
			
			
			<!-- <uni-tag text="标签" type="error" :circle="true" v-show="ents.enstatus==1"> 在职</uni-tag> -->
			
			<view class="tag-view" v-show="ents.enstatus==1" style="float: right;">
				<uni-tag text="在职" type="primary" size="small" />
			</view>
			<view>
				<text>{{ents.positionVo.posname}}</text>
			</view>
		</uni-card>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				departmentid: '',
				list: []
			}
		},
		onLoad(res) {
			this.departmentid = res.departmentid
			this.getAs()
		},
		methods: {
			cli(eid) {
				uni.reLaunch({
					url: 'xiangqing?eid=' + eid
				})
			},
			getAs() {
				console.log(this.departmentid)
				uni.request({
					url: 'http://localhost:8003/userproject/go/listlike/' + this.departmentid,
					method: 'POST',
					success: (res) => {
						this.list = res.data.data.list
					}
				})
			}
		}
	}
</script>

<style>

</style>
